import request from '/@/utils/request';

// 获取支付方式列表
export function PostPaymentMethodsIndex(params:object) {
  return request({
    url: '/admin/paymentmethods/index',
    method: 'post',
    data: params
  });
}

// 添加支付方式
export function PostPaymentMethodsAdd(params:object) {
  return request({
    url: '/admin/paymentmethods/add',
    method: 'post',
    data: params
  });
}

// 编辑支付方式
export function PostPaymentMethodsUpdate(params:object) {
  return request({
    url: '/admin/paymentmethods/updatepay',
    method: 'post',
    data: params
  });
}